package mypro1;

/*
 * 10的阶乘相加
 */
public class Testfor {
    public static void main(String[] args) {
        int sum = 0;
        for (int b = 1; b <= 10; b++) {
            int product = 1;
            for (int a = 1; a <= b; a++) {
                product = product * a;
            }
            sum = sum + product;
        }
        System.out.println(sum);
    }
}
